package com.ziyun.erp.modules.goodsCategory.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ziyun.erp.modules.goodsMonitor.annotation.CustomAnnotation;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类表
 * 
 * @author 
 * @email 
 * @date 2018-08-17 13:22:48
 */
@TableName("goods_category")
public class GoodsCategoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * hide_flag
	 */
	private Boolean hideFlag;
	/**
	 *计价方式
	 */
	private Integer pricingManner;
	/**
	 * 是否可上传文件
	 */
	private Boolean canUploadFile;
	/**
	 * 是否自来纸
	 */
	private Boolean selfPaper;
	/**
	 * 分类ID
	 */
	@TableId
	private Integer categoryId;
	/**
	 * 父分类ID
	 */
	private Integer parentCategoryId;
	/**
	 * 父分类名称
	 */
	@TableField(exist=false)
	private String parentName;
	/**
	 * 分类路径(从根至本结点的路径,逗号分隔,首部有逗号)
	 */
	private String categoryPath;
	/**
	 * 是否叶子结点（true：是；false：否）
	 */
	private Boolean whetherLeaf;
	/**
	 * 模板id
	 */
	private String templateIds;
	/**
	 *印刷字段
	 */
	private String categoryHandleType;
//	/**
//	 * 是否有部件
//	 */
//	private Boolean assembly;
	/**
	 *分类平台
	 */
	private Integer stageType;

	/**
	 * 类型序号
	 */
	private Integer typeId;
	/**
	 * 分类名称
	 */
	private String categoryName;
	/**
	 * 是否屏蔽（true：是；false：否）
	 */
	private Boolean disabled;
	/**
	 * 图片id
	 */
	private String imgId;
	/**
	 * 删除图片id
	 */
	@TableField(exist=false)
	private String delImage;
	/**
	 * 图片url
	 */
	@TableField(exist=false)
	private String imgUrl;
	/**
	 * 分类排序
	 */
	private Integer categoryOrder;
	/**
	 * 分类级别(1 一级分类 2 二级分类 3 三级分类)
	 */
	private Integer categoryLevel;
	/**
	 * ztree属性
	 */
	@TableField(exist=false)
	private Boolean open;
	/**
	 * 商品大类
	 */
	private String goodsType;
    /**
     * 创建人
     */
    private String createName;
	/**
	 *旧系统数据表示
	 */
	private Boolean dateFlag;

	public Boolean getDateFlag() {
		return dateFlag;
	}

	public void setDateFlag(Boolean dateFlag) {
		this.dateFlag = dateFlag;
	}

	/**
	 * 关联关系
	 */
	@TableField(exist=false)
	@CustomAnnotation(recursionFlag = true)
	private GoodsCategoryRelationEntity goodsCategoryRelation;
	/**
	 * 设置：分类ID
	 */
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	/**
	 * 获取：分类ID
	 */
	public Integer getCategoryId() {
		return categoryId;
	}
	/**
	 * 设置：父分类ID
	 */
	public void setParentCategoryId(Integer parentCategoryId) {
		this.parentCategoryId = parentCategoryId;
	}
	/**
	 * 获取：父分类ID
	 */
	public Integer getParentCategoryId() {
		return parentCategoryId;
	}
	/**
	 * 设置：分类路径(从根至本结点的路径,逗号分隔,首部有逗号)
	 */
	public void setCategoryPath(String categoryPath) {
		this.categoryPath = categoryPath;
	}
	/**
	 * 获取：分类路径(从根至本结点的路径,逗号分隔,首部有逗号)
	 */
	public String getCategoryPath() {
		return categoryPath;
	}
	/**
	 * 设置：是否叶子结点（true：是；false：否）
	 */
	public void setWhetherLeaf(Boolean whetherLeaf) {
		this.whetherLeaf = whetherLeaf;
	}
	/**
	 * 获取：是否叶子结点（true：是；false：否）
	 */
	public Boolean getWhetherLeaf() {
		return whetherLeaf;
	}
	/**
	 * 设置：类型序号
	 */
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	/**
	 * 获取：类型序号
	 */
	public Integer getTypeId() {
		return typeId;
	}
	/**
	 * 设置：分类名称
	 */
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	/**
	 * 获取：分类名称
	 */
	public String getCategoryName() {
		return categoryName;
	}
	/**
	 * 设置：是否屏蔽（true：是；false：否）
	 */
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}
	/**
	 * 获取：是否屏蔽（true：是；false：否）
	 */
	public Boolean getDisabled() {
		return disabled;
	}
	/**
	 * 设置：分类排序
	 */
	public void setCategoryOrder(Integer categoryOrder) {
		this.categoryOrder = categoryOrder;
	}
	/**
	 * 获取：分类排序
	 */
	public Integer getCategoryOrder() {
		return categoryOrder;
	}
	/**
	 * 设置：分类级别(1 一级分类 2 二级分类 3 三级分类)
	 */
	public void setCategoryLevel(Integer categoryLevel) {
		this.categoryLevel = categoryLevel;
	}
	/**
	 * 获取：分类级别(1 一级分类 2 二级分类 3 三级分类)
	 */
	public Integer getCategoryLevel() {
		return categoryLevel;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}

	public String getTemplateIds() {
		return templateIds;
	}

	public void setTemplateIds(String templateIds) {
		this.templateIds = templateIds;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

	public String getCategoryHandleType() {
		return categoryHandleType;
	}

	public void setCategoryHandleType(String categoryHandleType) {
		this.categoryHandleType = categoryHandleType;
	}

//	public Boolean getAssembly() {
//		return assembly;
//	}
//
//	public void setAssembly(Boolean assembly) {
//		this.assembly = assembly;
//	}

	public GoodsCategoryRelationEntity getGoodsCategoryRelation() {
		return goodsCategoryRelation;
	}

	public void setGoodsCategoryRelation(GoodsCategoryRelationEntity goodsCategoryRelation) {
		this.goodsCategoryRelation = goodsCategoryRelation;
	}

	public String getDelImage() {
		return delImage;
	}

	public void setDelImage(String delImage) {
		this.delImage = delImage;
	}

	public Integer getStageType() {
		return stageType;
	}

	public void setStageType(Integer stageType) {
		this.stageType = stageType;
	}

	public Boolean getSelfPaper() {
		return selfPaper;
	}

	public void setSelfPaper(Boolean selfPaper) {
		this.selfPaper = selfPaper;
	}

	public Boolean getCanUploadFile() {
		return canUploadFile;
	}

	public void setCanUploadFile(Boolean canUploadFile) {
		this.canUploadFile = canUploadFile;
	}

	public Integer getPricingManner() {
		return pricingManner;
	}

	public void setPricingManner(Integer pricingManner) {
		this.pricingManner = pricingManner;
	}

	public Boolean getHideFlag() {
		return hideFlag;
	}

	public void setHideFlag(Boolean hideFlag) {
		this.hideFlag = hideFlag;
	}
}

